package com.fishery.base.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@TableName(value = "t_germchit_order")
@ApiModel(value = "种苗订单实体类")
public class GermchitOrder {


	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "订单编号")
	@TableId(value = "id", type = IdType.ID_WORKER_STR)
	private String id;

	@ApiModelProperty(value = "基地编号")
	private String baseId;

	@ApiModelProperty(value = "种苗编号")
	private String germchitId;

	@ApiModelProperty(value = "种苗购买的数量")
	private Integer purchaseAmount;

	@ApiModelProperty(value = "创建订单人的名称")
	private String creatorName;

	@ApiModelProperty(value = "订单状态")
	private Integer status;

	@ApiModelProperty(value = "版本号（乐观锁）")
	@Version
	@TableField(fill = FieldFill.INSERT)
	private Integer version;

	@ApiModelProperty(value = "逻辑删除（0未删除，1删除）")
	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	private Integer isDeleted;

	@ApiModelProperty(value = "订单创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date gmtCreate;

	@ApiModelProperty(value = "修改时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date gmtModified;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getBaseId() {
		return baseId;
	}

	public void setBaseId(String baseId) {
		this.baseId = baseId;
	}

	public String getGermchitId() {
		return germchitId;
	}

	public void setGermchitId(String germchitId) {
		this.germchitId = germchitId;
	}

	public Integer getPurchaseAmount() {
		return purchaseAmount;
	}

	public void setPurchaseAmount(Integer purchaseAmount) {
		this.purchaseAmount = purchaseAmount;
	}

	public String getCreatorName() {
		return creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Integer getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}
}
